import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart';

class OverflowBoxDemo extends StatelessWidget{
  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar:  AppBar(
        title: Text('OverflowBox'),
        centerTitle: true,
      ),
      body: Container(
        padding: EdgeInsets.all(10),
        width: 200,
        height: 200,
        color: Colors.blue,
        child: OverflowBox(
          maxHeight: 400,
          child: Container(
            color: Colors.red,
            width: 200,
            height: 600,
          ),
        ),
      ),



    );
  }
  
}